package com.wuliang.generate.common.sharding.pool;


import com.wuliang.generate.common.sharding.domain.Sharding;

import javax.sql.DataSource;
import java.sql.SQLException;

public interface ShardingDataSourcePool {

    DataSource initShardingDataSource() throws SQLException;

    void createDataSource(String keyword, Sharding sharding);

    void createDataSourceIntoSharding(String keyword) throws SQLException;

}
